/* -----------------------------------------
   ==============  MAIN CSS  ===============
   ----------------------------------------- */
html,
body {
  height: 100%;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar-brand {
  font-weight: bold;
  font-size: 1.3em;
}
.navbar {
  flex-shrink: 0;
}

/* Container */
.container {
  flex: 1 0 auto;
  max-width: 960px;
  width: 100%;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
}

/* Alerts */
.alert {
  margin-top: 1em;
}

/* Table Wrapper */
.table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1em;
}

/* Conversation Table */
#conversation {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
#conversation th,
#conversation td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Forms */
label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-top: 1em;
}
label small {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

/* Buttons */
.button-container {
  display: inline-block;
}
.button-container button {
  margin-right: 10px;
}

/* Hide sections by default; show when needed */
#user-section,
#admin-section {
  margin-top: 30px;
  display: none;
}
#change-username-link,
#advance-link,
#update-link {
  display: none;
}

/* modal styling for editing/adding users */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 5px;
  right: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

/* FOOTER styles */
#donate-link {
  display: none;
}
.footer {
  flex-shrink: 0;
  background-color: #222;
  color: #ccc;
  padding: 10px;
  text-align: left;
}
.footer .footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .footer-links li {
  display: inline-block;
  margin: 0 10px;
}
.footer .footer-links a {
  color: #ccc;
  text-decoration: none;
}
.footer .footer-links a:hover {
  color: #fff;
}